import {getAxios} from "./service";

let axios=getAxios()
export let userApi={
  login(user){
    return axios.post("/api/user/login",{
      ...user
    }).then(resp=>resp.data)
  },
  testToken(){
    return axios.get("/api/user/test").then(resp=>resp.data)
  }
}
